/*
 * Copyright (c) 2007 jNetX.
 * http://www.jnetx.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * jNetX. You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license
 * agreement you entered into with jNetX.
 *
 * $Id$
 */
package com.jnetx.javax.sip.util;

import junit.framework.TestCase;

/**
 * @author <a href="mailto:dparhonin@jnetx.ru">Dmitry Parhonin</a>
 * @version $Revision$
 */
public class CharacterTreeTest extends TestCase {
    public CharacterTreeTest(String name) {
        super(name);
    }

    public void testSimple() {
        CharacterTree<String> tree = new CharacterTree<String>();
        tree.put("ACK", "1");
        tree.put("BYE", "2");
        tree.put("REGISTER", "3");
        tree.put("REFER", "4");
        tree.put("INVITE", "5");
        tree.put("INFO", "6");
        tree.put("IN-FO", "7");
        assertEquals("1", tree.get("ACK"));
        assertEquals("2", tree.get("BYE"));
        assertEquals("3", tree.get("REGISTER"));
        assertEquals("4", tree.get("REFER"));
        assertEquals("5", tree.get("INVITE"));
        assertEquals("6", tree.get("INFO"));
        assertEquals("7", tree.get("IN-FO"));
        assertNull(tree.get("ACKY"));
        assertNull(tree.get("RE"));
        assertNull(tree.get("REGI"));
        assertNull(tree.get("IN-TRO"));
    }
}
/*
 * $Log$
 */